package com.example.demo.pojo.decorator;

/**
 * @Author: cafe zhai
 * @Date: 2023/04/04/14:25
 * @Description:
 */
public abstract class WaterDecorator implements WaterInterFace {

    private WaterInterFace waterInterFace;

    public WaterDecorator(WaterInterFace waterInterFace) {
        this.waterInterFace = waterInterFace;
    }

    @Override
    public void drink() {
        waterInterFace.drink();
    }
}
